<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>

<html>
<head>
	<title>职位基础信息列表</title>
</head>

<body>
	<c:if test="${not empty message}">
		<div id="message" class="alert alert-success"><button data-dismiss="alert" class="close">×</button>${message}</div>
	</c:if>

	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead><tr><th width="30%">一级</th><th width="30%">二级</th><th width="30%">三级</th><th width="10%">管理</th></tr></thead>
		<tbody>
		<c:forEach items="${positions}" var="position">
			<tr>
				<c:if test="${position.level == 1}">
					<td>${position.id}:&nbsp;&nbsp;${position.name}</td>
					<td></td>
					<td></td>
					<td></td>
				</c:if>
				<c:if test="${position.level == 2}">
					<td></td>
					<td>${position.id}:&nbsp;&nbsp;${position.name}</td>
					<td></td>
					<td></td>
				</c:if>
				<c:if test="${position.level == 3}">
					<td></td>
					<td></td>
					<td>${position.id}:&nbsp;&nbsp;${position.name}</td>
					<td></td>
				</c:if>
			</tr>
		</c:forEach>
		</tbody>
	</table>
</body>
</html>
